package com.darknight.ftp.util;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * Created by DarKnight on 2017/7/12.
 */
public class EncodeUtils {
    public static String encode(String s, String enc)
            throws UnsupportedEncodingException {
        return URLEncoder.encode(s, enc);
    }
}
